home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 049a / sx227r1.zip / DEF-XP.BAT < prev    next >
DOS Batch File  |  1990-07-30  |  2KB  |  64 lines

  1. ECHO OFF
  2. :*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  3. :  Silver Xpress Mail System
  4. :     (c) copyright 1988-1990 by Santronics Software
  5. :
  6. :  Note: XPSUB is an optional program. Helps with memory if needed
  7. :*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  8. :  At a minimum, all you need in this batch file is:
  9. :     echo off
  10. :     cd\xpress
  11. :     xpmail switch settings
  12. :     cd\rbbs
  13. :  But a more detail setup is:
  14. :
  15. CD \XPRESS
  16. :
  17. :start
  18.  xpmail -P1 %1 %2 %3 %4 %5 %6 %7
  19. :check_for_process
  20.  if not exist process.dat goto no_process
  21.    xpsub -P1
  22.    erase process.dat
  23.    xpmail -P1 %1 %2 %3 %4 %5 %6 %7 -RESTART
  24.   goto check_for_process
  25. :
  26. :no_process
  27. :
  28.  
  29. :-------------------------OPTIONAL-----------------------------------
  30. : Check for any mail uploaded. These errorlevels match my settings in
  31. : xpcfg.  The stuff is normally not required. There are only here to
  32. : show you how you can set a post mail-processing of mail uploaded
  33. : after the user logs off. The *.$$$ files can serve as semiphores or
  34. : indicators. If you use this within a FidoNet message base arrangment
  35. : you can speed up your mail packing by telling QMAIL or CONFMAIL
  36. : to scan only if any of the *.$$$ exist.  To make this work, all
  37. : you need to do is add to your POST LOGOFF LOGIC:
  38. :
  39. :       IF EXIST \XPRESS\*.$$$ QM SCAN PACK -SNORMAL -FECHOTOSS.LOG
  40. :       IF EXIST \XPRESS\*.$$$ DEL \XPRESS*.$$$
  41. :-------------------------OPTIONAL-----------------------------------
  42.  
  43.   IF ERRORLEVEL 3 goto echomat
  44.   IF ERRORLEVEL 2 goto matrix
  45.   IF ERRORLEVEL 1 goto echo
  46.   goto end
  47. :
  48. :echomat
  49.   echo nul > echomat.$$$
  50.   goto end
  51. :
  52. :matrix
  53.   echo nul > matrix.$$$
  54.   goto end
  55. :
  56. :echo
  57.   echo nul > echo.$$$
  58.   goto end
  59. :
  60. :end
  61. : Return to RBBS DIRECTORY
  62. :
  63. CD \RBBS
  64.